/*
 * DummyWorldFactory.h
 *
 *  Created on: 19.06.2012
 *      Author: sebastian
 */

#ifndef DUMMYWORLDFACTORY_H_
#define DUMMYWORLDFACTORY_H_

#include "Universe.h"

#include "Star.h"
#include "Planet.h"

#include <cstdlib>

void createDummyWorld(Universe *u) {
	//some stars...
	for (int i = 0; i < 5; i++) {
		Vec v(rand() % 100, rand() % 20, rand() % 300);
		Star *s = new Star();
		s->setPos(v);
		u->objects_.push_back(s);
	}

	//and planets...
	for (int i = 0; i < 5; i++) {
		Planet *p = new Planet();
		Vec v(rand() % 100 + rand()%100, rand() % 200 + rand()%100, rand() % 30 + rand()%100);
		p->setPos(v);
		u->objects_.push_back(p);
	}

	return;
}

#endif /* DUMMYWORLDFACTORY_H_ */
